<template>
  <div class="params">
    <el-tabs type="border-card">
      <el-tab-pane label="商品参数" name="first">商品参数</el-tab-pane>
      <el-tab-pane label="商品详情" name="second">商品详情</el-tab-pane>
      <el-tab-pane label="商品评价" name="third">商品评价</el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import axios from 'axios';
export default {
  data() { },
  methods: {
    fetchProductAttributes(selectedValues) {
      console.log(11);

      this.categoryId = selectedValues[selectedValues.length - 1];
      axios.get(this.baseURL + '/categories/' + this.categoryId + 'attributes', {
        params: {
          sel: true
        },
        headers: {
          'Authorization': this.token
        }
      }).then(response => {
        console.log(response);
      });
    }
  }

}
</script>